package Commands;

/**
 * Write a description of class MessagesCommands here.
 * 
 * @author The_MMHoritz3 
 * @version 1.0
 * @date 19.10.2014
 */

import net.canarymod.commandsys.CommandListener;
import net.canarymod.chat.MessageReceiver;
import net.canarymod.commandsys.Command;

public class MessagesCommands implements CommandListener
{
    @Command(aliases = {"sendmessage","send","mail"}, description = "Sends a Message to the Player", permissions = {"PlayerInformation.Message.Send"}, toolTip = "/sendmessage <player> <text> [text]", min = 2)
    public void sendmessageCommand(MessageReceiver caller, String[] args)
    {
        
    }
    
    @Command(aliases = {"getwelcomemessage", "welcomemessage"}, description = "Shows you the Welcome Message", permissions={"PlayerInformatoin.Message"}, toolTip="/getwelcomemessage",min=0)
    public void getwelcomemessageCommand(MessageReceiver caller, String[] args)
    {
        Functions.Messages.sendPlayerWelcomeMessage(caller);
    }
    
    @Command(aliases = {"readmessage", "readmail"}, description = "Reads saved a Message to the Player", permissions = {"PlayerInformation.Message.Read"}, toolTip = "/readmessage <messageid>", min = 1)
    public void readmessageCommand(MessageReceiver caller, String[] args)
    {
        
    }
    
    @Command(aliases = {"getmessageslist", "listmessages"}, description = "Reads saved a Message to the Player", permissions = {"PlayerInformation.Message.Read"}, toolTip = "/getmessageslist", min = 0)
    public void listmessagesCommand(MessageReceiver caller, String[] args)
    {
        
    }
    
    @Command(aliases = {"rules"}, description = "Opens the Rules for you.", permissions = {"PlayerInformation.Message"}, toolTip = "/rules", min = 0)
    public void rulesCommand(MessageReceiver caller, String[] args)
    {
        Functions.Messages.openRulesForUser(caller);
    }
    
    @Command(aliases = {"afk"}, description = "Sets you afk", permissions = {"PlayerInformation.Message"}, toolTip = "/afk", min = 0)
    public void afkCommand(MessageReceiver caller, String[] args)
    {
        Functions.PlayerFunctions.afk(caller);
    }
}
